package org.example.demo;

import java.util.LinkedList;
import java.util.Queue;

public class PCDemoTest {

    public static void main(String[] args) {

        Queue<String> msg = new LinkedList<>();
        int maxSize = 10;

        Producer producer = new Producer(msg, maxSize);
        Consumers consumers = new Consumers(msg, maxSize);

        Thread t1 = new Thread(producer);
        Thread t2 = new Thread(consumers);

        t1.start();
        t2.start();

    }
}
